import request from '@/router/axios'

export function fetchPvmArcSpecialCheckList(query) {
  return request({
    url: '/pvm/arcSpecialCheck/page',
    method: 'get',
    params: query
  })
}

export function addPvmArcSpecialCheckObj(obj) {
  return request({
    url: '/pvm/arcSpecialCheck',
    method: 'post',
    data: obj
  })
}

export function getPvmArcSpecialCheckObj(id) {
  return request({
    url: '/pvm/arcSpecialCheck/' + id,
    method: 'get'
  })
}

export function delPvmArcSpecialCheckObj(id) {
  return request({
    url: '/pvm/arcSpecialCheck/' + id,
    method: 'delete'
  })
}

export function putPvmArcSpecialCheckObj(obj) {
  return request({
    url: '/pvm/arcSpecialCheck',
    method: 'put',
    data: obj
  })
}

export function getInfoByOptometryId(OptometryId) {
  return request({
    url: '/pvm/arcSpecialCheck/getInfoByOptometryId/' + OptometryId,
    method: 'get'
  })
}
